import React, { Component } from 'react';
import {
    View,
    StyleSheet,
    TouchableOpacity,
    Text

} from 'react-native';

/**
 * 自定义按钮
 */
class RNBtn extends Component {

    render() {
        return (
            <TouchableOpacity style={Styles.container} >
                <Text style={Styles.text}>确定</Text>
            </TouchableOpacity>
        );
    }
}

const Styles = StyleSheet.create({
    container: {
        width: 90,
        height: 40,
        backgroundColor: 'blue',
        justifyContent: 'center',
        alignItems: 'center',
        borderRadius: 5,
    },
    text: {
        color: 'white'
    }
});

export default RNBtn;